package com.lzm.ydpt.entity;

public class DeliveryTimeBean {
    private int position;
    private String time_now;
    private long deliveryTime;
    private boolean isSelect;
    private float addPrice;

    public DeliveryTimeBean() {
    }

    public DeliveryTimeBean(int position, String time_now, boolean isSelect) {
        this.position = position;
        this.time_now = time_now;
        this.isSelect = isSelect;
    }

    /**
     * 重写equals，只要tagid相同就默认是通对象，才认为这个对象是想等的
     */
    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof DeliveryTimeBean)) {
            return false;
        }
        DeliveryTimeBean tempBean = (DeliveryTimeBean) obj;
        return (this.position == tempBean.position);
    }

    public String getTime_now() {
        return time_now;
    }

    public void setTime_now(String time_now) {
        this.time_now = time_now;
    }

    public long getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(long deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public float getAddPrice() {
        return addPrice;
    }

    public void setAddPrice(float addPrice) {
        this.addPrice = addPrice;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}